class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
      t.string :name
			
      t.timestamps
    end

		create_table :categories_articles do |t|
			t.integer :category_id
			t.integer :article_id
		end
  end

  def self.down
    drop_table :categories
		drop_table :categories_articles
  end
end
